package com.sm.imlibrary.model.http;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * created by zhud on 2019/8/7
 */
public class MessageText implements Parcelable,Serializable {
    //消息内容
    public String content;

    public MessageText() {
    }

    protected MessageText(Parcel in) {
        content = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(content);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MessageText> CREATOR = new Creator<MessageText>() {
        @Override
        public MessageText createFromParcel(Parcel in) {
            return new MessageText(in);
        }

        @Override
        public MessageText[] newArray(int size) {
            return new MessageText[size];
        }
    };

}
